﻿/*****************************************************************//**
 * @file    FITKAcousticsVTKGraphObjectSEAJunctionAreas.h
 * @brief   Graph object base for SEA junction areas data.
 *
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-11-19
 *********************************************************************/

#ifndef __FITKACOUSTICSVTKGRAPHOBJECTSEAJUNCTIONAREAS_H__
#define __FITKACOUSTICSVTKGRAPHOBJECTSEAJUNCTIONAREAS_H__

#include "FITKAcousticsVTKGraphObjectSEAJunctions.h"

#include "FITKAcousticsVTKGraphAdaptorAPI.h"

 // Forward declaration

namespace Exchange
{
    /**
     * @brief   Graph object base for 'SEA junction areas'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-11-19
     */
    class FITKACOUSTICSGRAPHADAPTORAPI FITKAcousticsVTKGraphObjectSEAJunctionAreas : public FITKAcousticsVTKGraphObjectSEAJunctions
    {
        // Regist
        FITKGraphObjectRegist(FITKAcousticsVTKGraphObjectSEAJunctionAreas, FITKAcousticsVTKGraphObjectSEAJunctions);
        FITKCLASS(Exchange, FITKAcousticsVTKGraphObjectSEAJunctionAreas);

    public:
        /**
         * @brief   Constructor.
         * @param   seaModel: The SEA model data
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        FITKAcousticsVTKGraphObjectSEAJunctionAreas(Acoustics::FITKAcousticsDiscModel* seaModel);

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        ~FITKAcousticsVTKGraphObjectSEAJunctionAreas() = default;

        /**
         * @brief   Get the visibility from the data object.[override]
         * @return  The visibility
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        bool getDataVisibility() override;

    private:
        /**
         * @brief   Generate the multi block dataset for the sub-systems.[override]
         * @return  Is the data valid
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        bool generateDataSet() override;

        /**
         * @brief   Generate the actor with the sub-system data.[override]
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        void generateGraph() override;

        /**
         * @brief   Unused.[override]
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-11-19
         */
        void updateGlyphSizeByRatio() override {}

    };
}   // namespace Exchange

#endif // __FITKACOUSTICSVTKGRAPHOBJECTSEAJUNCTIONAREAS_H__
